/**
 * Tool Call Block Component
 *
 * Displays individual tool call execution with status and results
 */

import { ToolCallCard } from "@renderer/components/business/tool-calls/tool-call-card";
import type { ToolCallContentBlock } from "@shared/types/sequential-content";

interface ToolCallBlockProps {
  block: ToolCallContentBlock;
  messageId?: string; // Optional for potential future use
  threadId?: string; // Optional for tool call approvals
  className?: string;
}

export function ToolCallBlock({
  block,
  messageId,
  threadId,
  className = "",
}: ToolCallBlockProps) {
  const toolCall = block.toolCall;

  return (
    <div className={`${className}`}>
      {/* Tool call card */}
      <div className="rounded-lg">
        <ToolCallCard
          toolCall={toolCall}
          threadId={threadId}
          messageId={messageId}
          className="border-none shadow-none"
        />
      </div>
    </div>
  );
}
